﻿using UnityEngine;
using UnityEngine.UI;

class GameOverPanelExt : PanelBase
{
    public override void RegisterListeners()
    {
        base.RegisterListeners();
        Button btn = transform.Find("ReSetGame").GetComponent<Button>();
        btn.onClick.AddListener(OnResetGame);
    }

    private void OnResetGame()
    {
        Mgr.panelMgr.HidePanel(EnumPanelType.GameOverPanel);
        Mgr.fightMgr.PlayerRecoverHealth();
        Time.timeScale = 1;
    }
}